package org.bim.view.drag.design.api.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.bim.view.drag.design.entity.TProject;


@Getter
@Setter
public class TProjectVO extends TProject {
    @ApiModelProperty("项目所有者名称")
    private String ownerUserName;
    @ApiModelProperty("自己是否为项目所有者")
    private Boolean isOwner;
    @ApiModelProperty("项目中的角色，0查看着、1开发者，2所有者")
    private Integer shareRole;

    public Integer getShareRole(){
        if(isOwner!=null&&isOwner){
            return 2;
        }
        return shareRole;
    }
}
